<?php
namespace app\common\configs;

class CommonData
{
    const VERSION = '3.0.2009150'; // 当前版本号

    // 脚本集合
    const CANCEL_ORDER_JAVASCRIPT = "cancelOrderJavascript";
    const EXPIRE_ORDER_JAVASCRIPT = "expireOrderJavascript";
    const COMMISSION_JAVASCRIPT = "commissionJavascript";
    static $javascriptList = [
        self::CANCEL_ORDER_JAVASCRIPT => "取消订单脚本",
        self::EXPIRE_ORDER_JAVASCRIPT => "订单过期脚本",
        self::COMMISSION_JAVASCRIPT => "处理佣金脚本",
    ];

    // 小程序发布服务
    const WX_MINI_PUBLISH_SERVER_URL = 'https://update.netbcloud.com/public/index.php'; // 小程序发布服务地址
    const PROJECT_NAME = '跨境租车';
    static $wxMiniPublishRoute = [
        "checkUpdate" => "/wxApp/checkVersion", // 检查更新
        "invokeCode" => "/wxApp/getInvokeCode", // 调用码
        "preview" => "/wxApp/previewByMini", // 预览
        "upload" => "/wxApp/publishByMini", // 上传
        "getIp" => "/wxApp/getIp", // IP
    ]; // 接口地址
}